package com.syq.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName: RestTemplateConfig
 * @Description: TODO
 * @Create by: syq
 * @Date: 2022/8/16 11:29
 */

@Configuration
public class RestTemplateConfig {
    @Bean
    public RestTemplate restTemplate(){
        //http请求
        //请求超时时间 默认
            //读取时间
            //链接时间

        return new RestTemplate();

    }
}
